package hcn.api.service.api.request;

import ctd.util.annotation.RpcService;
import hcn.protocol.ods.RequestListBean;
import hcn.protocol.ods.RequestSearchBean;

import java.util.List;
import java.util.Map;

public interface RequestInterface {
	/**
	 * 查询待审批抗菌药物申请单列表
	 * HCN->EMR
	 * @param auditorId
	 * @param strat
	 * @param limit
	 * @param orgId
	 * @return
     * @throws Exception
     */
	@RpcService
	Object[] getRequestListIn(String auditorId, int strat, int limit, String orgId);

	/**
	 * 查询一份抗菌药物申请单信息
	 * HCN->EMR
	 * @param requestId
	 * @param orgId
	 * @return
	 * @throws Exception
     */
	@RpcService
	RequestSearchBean getRequestIn(String requestId, String orgId);

	/**
	 * 查询历史审批抗菌药物申请单列表
	 * HCN->EMR
	 * @param parms
	 * @return
	 * @throws Exception
     */
	@RpcService
	List<RequestListBean> getAuditHistroyIn(Map<String, Object> parms);

	/**
	 * 审批一份抗菌药物申请单
	 * HCN->EMR
	 * @param parms
	 * @throws Exception
     */
	@RpcService
	void auditRequestIn(Map<String, Object> parms);
}